package com.zhufeng.jvm.classloader;

public class MyTest17 {

	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
		MyTest16 load1 = new MyTest16("load1");
		
		load1.setLoadPath("/Users/zhufeng/Desktop/");
		
		Class<?> clazz = load1.loadClass("com.zhufeng.jvm.classloader.MySample");
		
		System.out.println("class: " + clazz.hashCode());
		
		Object object = clazz.newInstance();
		
		System.out.println(object);
		
	}

}
